package com.zhoushihao.class0806;

import java.util.Arrays;
import java.util.Scanner;

public class Compare {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        int[] nums = new int[3];
        for (int i = 0; i < nums.length; i++) {
            nums[i] = Integer.parseInt(str.split(" ")[i]);
        }
        Arrays.sort(nums);
        for (int i = 0; i < nums.length; i++) {
            if(i == nums.length - 1){
                System.out.print(nums[i]);
            }else {
                System.out.print(nums[i] + "->");
            }
        }

    }
}
